package com.notice.dao;

import com.notice.entity.Messages;
import com.notice.entity.Photo;
import com.notice.entity.file;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MessageDao {
    int add(Messages messages);
    int delete(int mid);

    List<Messages> find(Messages m);

    int update(Messages messages);

    int addPhoto(Photo p);
    List<Photo> findPhoto(Photo p);
    int deletePhoto(Photo p);

    int updatePhoto(Photo p);
    int addFile(file f);

    int deleteFile(file f);

    int updateFile(file f);

    List<file> findFile(file f);

}
